public class demo3 {
    public static void main(String[] args) {
        int count = 0, n = 100;
        for (int i = 0; i < 100; i++) {
            for (int j = 0; j < i; j++) {
                count ++;
            }
        }
    }
}
